package cn.yunhe.test;

public class Student {
    String sname = "张三";
    int age = 9;

    public Student(String name, int age) {
        System.out.println("ffffff");
        this.sname = name;
        this.age = age;
    }

    public Student() {
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "名子" + this.sname + "年龄" + this.age;
    }

    public void oooo() {
        System.out.println(sname);
    }
}
